home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / share / aclocal-1.8 / minuso.m4 < prev    next >
Encoding:
M4 Source File  |  2005-10-16  |  1.5 KB  |  40 lines

  1. # serial 2
  2.  
  3. # AM_PROG_CC_C_O
  4. # --------------
  5. # Like AC_PROG_CC_C_O, but changed for automake.
  6.  
  7. # Copyright (C) 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
  8.  
  9. # This program is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; either version 2, or (at your option)
  12. # any later version.
  13.  
  14. # This program is distributed in the hope that it will be useful,
  15. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  17. # GNU General Public License for more details.
  18.  
  19. # You should have received a copy of the GNU General Public License
  20. # along with this program; if not, write to the Free Software
  21. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  22. # 02111-1307, USA.
  23.  
  24. AC_DEFUN([AM_PROG_CC_C_O],
  25. [AC_REQUIRE([AC_PROG_CC_C_O])dnl
  26. AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  27. # FIXME: we rely on the cache variable name because
  28. # there is no other way.
  29. set dummy $CC
  30. ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
  31. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
  32.    # Losing compiler, so override with the script.
  33.    # FIXME: It is wrong to rewrite CC.
  34.    # But if we don't then we get into trouble of one sort or another.
  35.    # A longer-term fix would be to have automake use am__CC in this case,
  36.    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  37.    CC="$am_aux_dir/compile $CC"
  38. fi
  39. ])
  40.